package com.zh.sharding.sale.repository;

import com.zh.sharding.sale.entity.MyOrders;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author ZH
 * @date 09:24 2023/8/4
 */
@Mapper
public interface OrdersDao {
    String TABLE_NAME = "t_orders";

    @Insert("insert into t_orders(no,num,amount,product_id,user_id,create_time) " +
            " values(#{no},#{num},#{amount},#{productId} ,#{userId},#{createTime})")
    int insert(MyOrders orders);

}
